<?php
require_once 'service/UserService.php';

if(isset($_GET['checkemail'])) {
	$userService = new UserService();
	//echo $_GET['checkemail'];
	$flag = $userService->isEmailRegistered($_GET['checkemail']);
	if($flag){
		echo '1';
	} else {
		echo '0';
	}
}
?>
